package com.usian.service.impl;

import com.usian.mapper.RoleMapper;
import com.usian.pojo.User;
import com.usian.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleMapper roleMapper;

    @Override
    public User findUser(User user) {
        return roleMapper.findUser(user);
    }

    @Override
    public void add(User user) {
        roleMapper.add(user);
    }
}
